package src.example.商场收银系统.v3;

/**
 * 封装算法
 * 上下文
 */
public class Context {
    private CashSuper cashSuper;

    public Context(CashSuper cashSuper){
        this.cashSuper=cashSuper;
    }

    double getTotalPrice(Integer num,double price){
        return cashSuper.getTotalPrice(num,price);
    }

}
